
/**
 * Lambertian
 * @version 1.0
 * @since 1.0
 * <p>
 * Created by Murphy at 2021/7/15 8:03
 **/
#pragma once
#include "Material.hpp"
#include "math/Math.hpp"

namespace Stitches
{
class Lambertian : public Material
{
public:
    Lambertian(const Vec3f& a) :albedo(a) { }

    bool scatter(const Ray& r_in, const HitRecord& rec, Vec3f & attenuation, Ray& scattered) const override;

public:
    Vec3f albedo;
};
}





